package com.example.back.service;

import com.example.back.dto.req.DrugFrequencyEditReq;
import com.example.back.dto.req.DrugFrequencyListReq;
import com.example.back.dto.req.DrugUsageListReq;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author wxy
 * @Date 2021/1/14 13:22
 * @Version 1.0
 */
public interface DrugUsageService {
    /**
     * 获取药品用法用量列表
     */
    PageInfo<DrugUsageListReq> list(@RequestBody DrugFrequencyListReq req);

    /**
     * 修改和添加用法用量
     */
    Object commitSave(DrugFrequencyEditReq req);

    /**
     * 删除用法用量
     */
    Object commitDel(DrugFrequencyEditReq req);
}
